package com.leo.train.business.mapper;

import com.github.pagehelper.Page;
import com.leo.train.business.dto.StationDto;
import com.leo.train.business.dto.StationQueryDto;
import com.leo.train.business.entity.Station;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StationMapper {
    void insert(StationDto dto);

    Page<Station> selectList(StationQueryDto queryDto);

    void update(StationDto dto);

    StationDto selectById(Long id);

    void deleteById(Long id);

    List<Station> selectAll();

    Station selectByName(String name);
}
